<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 为抵抗洪水，战士连续作战89小时，编程计算共多少天零多少小时？
        var hours = 89; // 总小时数;

        console.log(parseInt(89/24));
        console.log(89%24);
    </script>
</body>

</html>